/*
 * Copyright 2010 - 2011, The PLDesktop Development Team
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 */
#ifndef PLSIGNALBASE_H
#define PLSIGNALBASE_H

#include <tools/PLVector.h>
#include <kernel/signalslot/lang/PLConnectionBase.h>

namespace PLSDK {

	class PLObject;

	/**
	 * Base class for all signals.
	 */
	class PLAPI_EXPORT PLSignalBase {
	public:
		/**
		 * Constructor.
		 */
		PLSignalBase();
		/**
		 * Set the connection to a object.
		 *
		 * @param object The object to connect to.
		 * @param connection The connection to connect to.
		 * @param type The type of the connection.
		 * @return True if all was successfully connected.
		 */
		void connect(PLObject *object, PLConnectionBase *connection, PLSignalTypes type);
		/**
		 * Remove a connection from a signal with a id.
		 *
		 * @param slotID The slot id to remove.
		 */
		virtual void removeSignal(pluint64 slotID) { PLUNUSED(slotID); }
	};

}

#endif
